<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>sponge</title>
    <meta name="description" content="一些很随意的前端笔记">
    <link rel="icon" href="/vuepress-blog/hero.jpg">
    
    <link rel="preload" href="/vuepress-blog/assets/css/0.styles.5d74642e.css" as="style"><link rel="preload" href="/vuepress-blog/assets/js/app.21385443.js" as="script"><link rel="preload" href="/vuepress-blog/assets/js/7.19b72361.js" as="script"><link rel="prefetch" href="/vuepress-blog/assets/js/10.b2b9db1b.js"><link rel="prefetch" href="/vuepress-blog/assets/js/11.fafc0e1d.js"><link rel="prefetch" href="/vuepress-blog/assets/js/12.a3867a96.js"><link rel="prefetch" href="/vuepress-blog/assets/js/13.8b18fa10.js"><link rel="prefetch" href="/vuepress-blog/assets/js/2.2e3e2c34.js"><link rel="prefetch" href="/vuepress-blog/assets/js/3.dc26014a.js"><link rel="prefetch" href="/vuepress-blog/assets/js/4.05a9910c.js"><link rel="prefetch" href="/vuepress-blog/assets/js/5.ffffdb2b.js"><link rel="prefetch" href="/vuepress-blog/assets/js/6.334e70a7.js"><link rel="prefetch" href="/vuepress-blog/assets/js/8.2f20ced6.js"><link rel="prefetch" href="/vuepress-blog/assets/js/9.624d7ce4.js">
    <link rel="stylesheet" href="/vuepress-blog/assets/css/0.styles.5d74642e.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vuepress-blog/" class="home-link router-link-active"><!----> <span class="site-name">sponge</span></a> <div class="links" style="max-width:nullpx;"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">前端技术栈</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/vuepress-blog/jsNotes/reflow.html" class="nav-link">笔记</a></li><li class="dropdown-item"><!----> <a href="/vuepress-blog/tips/arrSort.html" class="nav-link">其他</a></li></ul></div></div><div class="nav-item"><a href="/vuepress-blog/about.html" class="nav-link">关于我们</a></div><div class="nav-item"><a href="https://github.com/spongege" target="_blank" rel="noopener noreferrer" class="nav-link external">
  GitHub
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <div class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">前端技术栈</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/vuepress-blog/jsNotes/reflow.html" class="nav-link">笔记</a></li><li class="dropdown-item"><!----> <a href="/vuepress-blog/tips/arrSort.html" class="nav-link">其他</a></li></ul></div></div><div class="nav-item"><a href="/vuepress-blog/about.html" class="nav-link">关于我们</a></div><div class="nav-item"><a href="https://github.com/spongege" target="_blank" rel="noopener noreferrer" class="nav-link external">
  GitHub
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav>  <ul class="sidebar-links"><li><div class="sidebar-group first collapsable"><p class="sidebar-heading open"><span>jsNotes</span> <span class="arrow down"></span></p> <ul class="sidebar-group-items"><li><a href="/vuepress-blog/jsNotes/reflow.html" class="sidebar-link">回流（reflow）与重绘(repaint)</a></li><li><a href="/vuepress-blog/jsNotes/reg.html" class="sidebar-link">正则</a></li><li><a href="/vuepress-blog/jsNotes/arrSort.html" class="sidebar-link">数组排序</a></li></ul></div></li></ul> </div> <div class="page"> <div class="content"></div> <div class="page-edit"><!----> <!----></div> <!----> </div> <div class="page"><section class="page-edit"><div><span data-flag-title="Your Article Title" class="leancloud-visitors"><em class="post-meta-item-text">阅读量： </em> <i class="leancloud-visitors-count"></i></span></div> <h3><a href="javascript:;"></a>
      评 论：
    </h3> <div id="vcomments"></div></section></div> <!----></div></div>
    <script src="/vuepress-blog/assets/js/app.21385443.js" defer></script><script src="/vuepress-blog/assets/js/7.19b72361.js" defer></script>
  </body>
</html>
